import request from "@/utils/request.js";

const api_prefix = '/evaluation'

export function save(data){
    return request({
        //模板字符串拼接参数
        url: `${api_prefix}/save`,
        method: 'post',
        data
    })
}

export function list(pageNO,pageSize,params){
    return request({
        //模板字符串拼接参数
        url: `${api_prefix}/list/${pageNO}/${pageSize}`,
        method: 'get',
        params
    })
}

export function getUserById(id){
    return request({
        //模板字符串拼接参数
        url: `${api_prefix}/echo/${id}`,
        method: 'get'
    })
}

export function removeById(id){
    return request({
        //模板字符串拼接参数
        url: `${api_prefix}/remove/${id}`,
        method: 'delete'
    })
}

export function update(data){
    return request({
        //模板字符串拼接参数
        url: `${api_prefix}/update`,
        method: 'put',
        data
    })
}